export default class NodeDatastructure {
  constructor() {
    this.childList = [];
  }

  add(children) {
    if (Array.isArray(children)) {
      children.forEach((child) => {
        this.childList.push(child);
      });
      return;
    }
    this.childList.push(children);
  }
}